package javaEE65_day03.StudentTeacherManger.controller.TeacherController;

import javaEE65_day03.StudentTeacherManger.domian.Teacher;

import java.util.Scanner;

public class TeacherController extends PublicController {
    //创建键盘录入对象
    private Scanner sc = new Scanner(System.in);

    //接收用户输入的教师信息
    private Teacher inputInformation(String id) {
        //录入学教师信息
        System.out.println("请输入教师姓名:");
        String name = sc.next();
        System.out.println("请输入教师年龄:");
        String age = sc.next();
        System.out.println("请输入教师生日:");
        String birthday = sc.next();
        //创建Teacher类对象
        Teacher tea = new Teacher();
        //实例化tea对象
        tea.setJobNumber(id);
        tea.setName(name);
        tea.setAge(age);
        tea.setBirthday(birthday);
        //返回tea对象
        return tea;
    }
}
